Optimal. Leaf size=155 \[ -\frac {2 \sqrt {\cos (c+d x)} \sqrt {\frac {a (1-\cos (c+d x))}{a+b \cos (c+d x)}} \sqrt {\frac {a (1+\cos (c+d x))}{a+b \cos (c+d x)}} (a+b \cos (c+d x)) \csc (c+d x) \Pi \left (\frac {b}{a+b};\text {ArcSin}\left (\frac {\sqrt {a+b} \sqrt {\cos (c+d x)}}{\sqrt {a+b \cos (c+d x)}}\right )|-\frac {a-b}{a+b}\right ) \sqrt {\sec (c+d x)}}{\sqrt {a+b} d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 155, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.080, Rules used = {4307, 2890}
\begin {gather*} -\frac {2 \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\sec (c+d x)} \sqrt {\frac {a (1-\cos (c+d x))}{a+b \cos (c+d x)}} \sqrt {\frac {a (\cos (c+d x)+1)}{a+b \cos (c+d x)}} (a+b \cos (c+d x)) \Pi \left (\frac {b}{a+b};\text {ArcSin}\left (\frac {\sqrt {a+b} \sqrt {\cos (c+d x)}}{\sqrt {a+b \cos (c+d x)}}\right )|-\frac {a-b}{a+b}\right )}{d \sqrt {a+b}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2890
Rule 4307
Rubi steps
\begin {align*} \int \sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)} \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {\cos (c+d x)}} \, dx\\ &=-\frac {2 \sqrt {\cos (c+d x)} \sqrt {\frac {a (1-\cos (c+d x))}{a+b \cos (c+d x)}} \sqrt {\frac {a (1+\cos (c+d x))}{a+b \cos (c+d x)}} (a+b \cos (c+d x)) \csc (c+d x) \Pi \left (\frac {b}{a+b};\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {\cos (c+d x)}}{\sqrt {a+b \cos (c+d x)}}\right )|-\frac {a-b}{a+b}\right ) \sqrt {\sec (c+d x)}}{\sqrt {a+b} d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.48, size = 146, normalized size = 0.94 \begin {gather*} \frac {2 \sqrt {a+b \cos (c+d x)} \left ((a-b) F\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {-a+b}{a+b}\right )+2 b \Pi \left (-1;\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {-a+b}{a+b}\right )\right ) \sqrt {\cos (c+d x) \sec ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\sec (c+d x)}}{(a+b) d \sqrt {\frac {(a+b \cos (c+d x)) \sec ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.30, size = 199, normalized size = 1.28
method | result | size |
default | \(\frac {2 \sqrt {\frac {1}{\cos \left (d x +c \right )}}\, \left (a \EllipticF \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {-\frac {a -b}{a +b}}\right )-\EllipticF \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {-\frac {a -b}{a +b}}\right ) b +2 b \EllipticPi \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, -1, \sqrt {-\frac {a -b}{a +b}}\right )\right ) \sqrt {\frac {a +b \cos \left (d x +c \right )}{\left (1+\cos \left (d x +c \right )\right ) \left (a +b \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \left (\sin ^{2}\left (d x +c \right )\right )}{d \sqrt {a +b \cos \left (d x +c \right )}\, \left (-1+\cos \left (d x +c \right )\right )}\) | \(199\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {a + b \cos {\left (c + d x \right )}} \sqrt {\sec {\left (c + d x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \sqrt {\frac {1}{\cos \left (c+d\,x\right )}}\,\sqrt {a+b\,\cos \left (c+d\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________